import React,{Component} from 'react';
import style from './style.css';

export const Label = (props)=>{
    let moreClass = '';
    if(props.style && props.style.width){
        props.style.display = 'inline-block'
    }
    if(props.className){
        moreClass = props.className;
    }
    return(
        <span {...props} className = {`${style.label} ${moreClass}`} >
            {props.children}
        </span>
    )
}